<template>
  <div class="welcome-container">
    <h2>统计分析</h2>
    <el-row :gutter="10">
      <el-col :span="6">
        <div class="banner" style="background:#409eff">
          <i class="el-icon-time"></i>
          <div class="r">
            <span>用户总数量</span><br>
          <span>{{this.$store.state.usersnum}}</span>
          </div>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="banner" style="background:#00FF33">
          <i class="el-icon-time"></i>
          <div class="r">
            <span>信息总数量</span><br>
          <span>{{this.$store.state.newsnum}}</span>
          </div>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="banner" style="background:#9933FF">
          <i class="el-icon-time"></i>
          <div class="r">
            <span>近7天新增用户</span><br>
          <span>8</span>
          </div>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="banner" style="background:#FF6633">
          <i class="el-icon-time"></i>
          <div class="r">
            <span>近1个月信息总数量</span><br>
          <span>80</span>
          </div>
        </div>
      </el-col>
    </el-row>
    <!-- 待办事项 -->
    <el-card>
      <div class="head">
        待办事项
      </div>
      <el-row :gutter="20">
        <el-col :span="8">
        <div class="banner" style="background:#5B5B00">
          <i class="el-icon-time"></i>
          <div class="r">
            <span>昨日订单收入</span><br>
          <span>￥1000.00</span>
          </div>
        </div>
      </el-col>
      <el-col :span="8">
        <div class="banner" style="background:#EA7500">
          <i class="el-icon-time"></i>
          <div class="r">
            <span>昨日订单收入</span><br>
          <span>￥1000.00</span>
          </div>
        </div>
      </el-col>
      <el-col :span="8">
        <div class="banner" style="background:#00FFFF">
          <i class="el-icon-time"></i>
          <div class="r">
            <span>昨日订单收入</span><br>
          <span>￥1000.00</span>
          </div>
        </div>
      </el-col>
      </el-row>
    </el-card>
 
    <!-- 订单统计 -->
    <el-card>
      <div class="head">
        待办事项
      </div>
    </el-card>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="less" scoped>
.welcome-container{
  .el-row{
    margin-top: 10px;
    .banner{
    height: 100px;
    border: 1px solid #000;
    display: flex;
    align-items: center;
    padding-left: 10px;
    box-sizing: border-box;
    border-radius: 5px;
    justify-content: center;
    i{
      font-size: 70px;
      margin-right: 20px;
    }
  }
  }

  .el-card{
    .head{
      height: 40px;
      line-height: 40px;
      background: #F8F8F8;
      padding: 0 10px;
    }

  }
  .class{
    display: flex;
    justify-content: space-between;
    .el-card{
      width: 49%;
    }
  }
}
</style>